

#include "stdio.h"
#include "stdlib.h"


void veriflog(char user[20], char mdp[20])
{
const char ident[20] = "identifiant";
const char passwd[20] = "pass";

if(strcmp(ident,user) == 0 && strcmp(passwd,mdp) == 0)
{
printf("identifiants valides\n Bienvenue %s", ident);
}
else
{
printf("nop");
}
}

void login()
{
    char id[20];
    char pass[20];

    printf("identifiant: ");
    scanf("%s", id);
    printf("Mot de passe :");
    scanf("%s", pass);
    veriflog(id,pass);


}
int main()
{
    login();


    return 0;
}
